package lanou3g.com.adapter;


import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import lanou3g.com.Fragment.Welcome_Fragment;

public class Welcome_Adapter extends FragmentPagerAdapter {
    //设置标题
    private String[] titles = {"新功能","新功能","还是新功能!"};
    public Welcome_Adapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int i) {
        return Welcome_Fragment.newInstance(i);
    }

    @Override
    public int getCount() {
        return titles.length;
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return titles[position];
    }
}
